import { constTemplate } from "@/common/constants"



export function sendMainWindow(func: string, params: object = {}) {
    window.nativeBridge.send({
        "mId": constTemplate.mainWindow,
        "func": func,
        "params": params
    })
}

export function sendShell(func: string, params: object = {}) {
    window.nativeBridge.send({
        "mId": constTemplate.shell,
        "func": func,
        "params": params
    })
}


export function sendLoginWindow(func: string, params: object = {}) {
    window.nativeBridge.send({
        "mId": constTemplate.loginWindow,
        "func": func,
        "params": params
    })
}